#include <stdlib.h>

#include <iostream>

int main(int argc, char *argv[]){
    std::cout << "Hello, from hello_world!\n";

    // 打印传入的参数
    std::cout << "argc=" << argc << "\n";
    for(int i=0;i<argc;++i){
        std::cout << "argv[" << i << "]=" << argv[i] << "\n";
    }
    
    
    std::cout << "================================\n";
    system("pwd");                // 调用system()函数直接运行命令
    system("/bin/sh ./alex.sh"); // 调用system()函数运行shell脚本，通过调试启动有效
}
